﻿<!--vt[参数区域开始]-->
<vt:function var="boards" method="GetBoards" type="show" fid="0" />
<vt:function var="articles" method="GetData" top="10" data="articles" type="show" />
<vt:set var="listfilter" value="$url.bid.0" format="bid={0}" />
<vt:function var="curarticles" key="id" method="GetList" pagesize="3" data="articles"
    type="show" px="[id] " filter="$listfilter" />
<vt:set var="filter" value="$url.bid.0" format="fid={0}" />
<vt:function var="cboards" method="GetData" top="10" data="boards" type="show" filter="$filter" />
<vt:serverdata var="cookie" type="Cookie" item="lang" />
<!--vt[参数区域结束]-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <script src="/js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="/js/jquery.easyui.min.js" type="text/javascript"></script>

    <base href="{$:basepath}" />
    <link href="images/style04.css" type="text/css" rel="stylesheet" />
    <title>{$:myarticle.title} {$:mysite.sitename}</title>
    <script type="text/javascript">
        function getcookie(name)
        {
            var cookie_start = document.cookie.indexOf(name);
            var cookie_end = document.cookie.indexOf(";", cookie_start);
            return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
        }
        function setcookie(cookieName, cookieValue, seconds, path, domain, secure)
        {
            var expires = new Date();
            expires.setTime(expires.getTime() + seconds);
            document.cookie = escape(cookieName) + '=' + escape(cookieValue)
+ (expires ? '; expires=' + expires.toGMTString() : '')
+ (path ? '; path=' + path : '/')
+ (domain ? '; domain=' + domain : '')
+ (secure ? '; secure' : '');
        }

        $(document).ready(function()
        {
            $("#acn").click(function()
            {
                setcookie("lang", "cn", 18000, "", "", false);
                location.href = location.href;
            });
            $("#aen").click(function()
            {
                setcookie("lang", "en", 18000, "", "", false);
                location.href = location.href;                
            });
        });
    </script>
</head>
<body>
    <div class="root">
        <div class="top">
            <div class="logo">
                <img width="324" height="69" src="images/logo.gif" /></div>
            <div class="lang">
                <span>语言切换：</span>
                <div class="langcn">
                    <a id="acn"  href="javascript:" >中文</a>
                </div>
                <div class="langen">
                    <a id="aen"  href="javascript:" >ENGLISH</a>
                </div>
            </div>
        </div>
        <div class="banner">
            <div class="bn">
                <object height="252" width="950" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
                    <param value="images/bn.swf" name="movie">
                    <param value="high" name="quality">
                    <param value="transparent" name="wmode">
                    <embed height="252" width="950" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
                        quality="high" src="images/bn.swf">
                </object>
            </div>
            <div class="menumain">
                <div class="menu">
                    <vt:foreach from="$boards" item="item" index="i">
                   <vt:if var="cookie" value="en">
                  <a href="{$:item.link}">{$:item.ename}</a>
                  <vt:else />
                  <a href="{$:item.link}">{$:item.cname}</a>
                  </vt:if>
                    </vt:foreach>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
